PulseCanvas / app · pulsecanvas.ai / Sources / PulseCanvas / Resources / ProjectM / Presets / Dancer / Blobby Mirror / LuxXx - Absinthe with MC Escher.milk
| 1 | MILKDROP_PRESET_VERSION=201 |
| 2 | PSVERSION=2 |
| 3 | PSVERSION_WARP=2 |
| 4 | PSVERSION_COMP=2 |
| 5 | [preset00] |
| 6 | fRating=5.000000 |
| 7 | fGammaAdj=1.000 |
| 8 | fDecay=0.929 |
| 9 | fVideoEchoZoom=1.000 |
| 10 | fVideoEchoAlpha=0.500 |
| 11 | nVideoEchoOrientation=0 |
| 12 | nWaveMode=7 |
| 13 | bAdditiveWaves=0 |
| 14 | bWaveDots=0 |
| 15 | bWaveThick=0 |
| 16 | bModWaveAlphaByVolume=0 |
| 17 | bMaximizeWaveColor=1 |
| 18 | bTexWrap=1 |
| 19 | bDarkenCenter=0 |
| 20 | bRedBlueStereo=0 |
| 21 | bBrighten=1 |
| 22 | bDarken=1 |
| 23 | bSolarize=0 |
| 24 | bInvert=0 |
| 25 | fWaveAlpha=0.001 |
| 26 | fWaveScale=0.640 |
| 27 | fWaveSmoothing=0.270 |
| 28 | fWaveParam=0.000 |
| 29 | fModWaveAlphaStart=0.750 |
| 30 | fModWaveAlphaEnd=0.950 |
| 31 | fWarpAnimSpeed=1.000 |
| 32 | fWarpScale=1.000 |
| 33 | fZoomExponent=3.04777 |
| 34 | fShader=0.000 |
| 35 | zoom=1.01730 |
| 36 | rot=0.00000 |
| 37 | cx=0.500 |
| 38 | cy=0.500 |
| 39 | dx=0.00000 |
| 40 | dy=0.00000 |
| 41 | warp=0.01605 |
| 42 | sx=1.00000 |
| 43 | sy=1.00000 |
| 44 | wave_r=0.500 |
| 45 | wave_g=0.500 |
| 46 | wave_b=0.500 |
| 47 | wave_x=0.500 |
| 48 | wave_y=0.960 |
| 49 | ob_size=0.000 |
| 50 | ob_r=0.000 |
| 51 | ob_g=0.000 |
| 52 | ob_b=0.000 |
| 53 | ob_a=1.000 |
| 54 | ib_size=0.010 |
| 55 | ib_r=0.250 |
| 56 | ib_g=0.250 |
| 57 | ib_b=0.250 |
| 58 | ib_a=0.000 |
| 59 | nMotionVectorsX=64.000 |
| 60 | nMotionVectorsY=48.000 |
| 61 | mv_dx=0.000 |
| 62 | mv_dy=0.000 |
| 63 | mv_l=0.000 |
| 64 | mv_r=1.000 |
| 65 | mv_g=1.000 |
| 66 | mv_b=1.000 |
| 67 | mv_a=0.000 |
| 68 | b1n=0.000 |
| 69 | b2n=0.000 |
| 70 | b3n=0.000 |
| 71 | b1x=1.000 |
| 72 | b2x=1.000 |
| 73 | b3x=1.000 |
| 74 | b1ed=0.250 |
| 75 | wavecode_0_enabled=0 |
| 76 | wavecode_0_samples=512 |
| 77 | wavecode_0_sep=0 |
| 78 | wavecode_0_bSpectrum=0 |
| 79 | wavecode_0_bUseDots=1 |
| 80 | wavecode_0_bDrawThick=0 |
| 81 | wavecode_0_bAdditive=0 |
| 82 | wavecode_0_scaling=0.44665 |
| 83 | wavecode_0_smoothing=0.50000 |
| 84 | wavecode_0_r=0.000 |
| 85 | wavecode_0_g=0.200 |
| 86 | wavecode_0_b=1.000 |
| 87 | wavecode_0_a=1.000 |
| 88 | wavecode_1_enabled=1 |
| 89 | wavecode_1_samples=512 |
| 90 | wavecode_1_sep=0 |
| 91 | wavecode_1_bSpectrum=0 |
| 92 | wavecode_1_bUseDots=0 |
| 93 | wavecode_1_bDrawThick=1 |
| 94 | wavecode_1_bAdditive=1 |
| 95 | wavecode_1_scaling=2.02310 |
| 96 | wavecode_1_smoothing=0.00000 |
| 97 | wavecode_1_r=0.000 |
| 98 | wavecode_1_g=0.000 |
| 99 | wavecode_1_b=1.000 |
| 100 | wavecode_1_a=1.000 |
| 101 | wave_1_init1=t2 = 0; |
| 102 | wave_1_init2=t3 = 0; |
| 103 | wave_1_init3=t4 = 0; |
| 104 | wave_1_init4=cl = 0; |
| 105 | wave_1_per_frame1=t8 = 1; |
| 106 | wave_1_per_point1=//d3 = if(equal(t8,1),t4,d3); |
| 107 | wave_1_per_point2=//d2 = if(equal(t8,1),t3,d2); |
| 108 | wave_1_per_point3=//d1 = if(equal(t8,1),t2,d1); |
| 109 | wave_1_per_point4=//d = if(equal(t8,1),t1,d); |
| 110 | wave_1_per_point5=t3 = t3*0.6 + (value1)*1; |
| 111 | wave_1_per_point6=t2 = t2*0.7 + t3*0.2; |
| 112 | wave_1_per_point7=t1 = t1*0.8 + t2*0.1; |
| 113 | wave_1_per_point8=d = d*0.9 + t1*0.2; |
| 114 | wave_1_per_point9= |
| 115 | wave_1_per_point10=y = 0.5 + d*sample*(1-sample); |
| 116 | wave_1_per_point11=x = .2 + sample*0.6; |
| 117 | wave_1_per_point12=t8 = 0; |
| 118 | wavecode_2_enabled=0 |
| 119 | wavecode_2_samples=512 |
| 120 | wavecode_2_sep=0 |
| 121 | wavecode_2_bSpectrum=0 |
| 122 | wavecode_2_bUseDots=0 |
| 123 | wavecode_2_bDrawThick=0 |
| 124 | wavecode_2_bAdditive=0 |
| 125 | wavecode_2_scaling=1.00000 |
| 126 | wavecode_2_smoothing=0.50000 |
| 127 | wavecode_2_r=1.000 |
| 128 | wavecode_2_g=1.000 |
| 129 | wavecode_2_b=1.000 |
| 130 | wavecode_2_a=1.000 |
| 131 | wavecode_3_enabled=0 |
| 132 | wavecode_3_samples=512 |
| 133 | wavecode_3_sep=0 |
| 134 | wavecode_3_bSpectrum=0 |
| 135 | wavecode_3_bUseDots=0 |
| 136 | wavecode_3_bDrawThick=0 |
| 137 | wavecode_3_bAdditive=0 |
| 138 | wavecode_3_scaling=1.00000 |
| 139 | wavecode_3_smoothing=0.50000 |
| 140 | wavecode_3_r=1.000 |
| 141 | wavecode_3_g=1.000 |
| 142 | wavecode_3_b=1.000 |
| 143 | wavecode_3_a=1.000 |
| 144 | shapecode_0_enabled=1 |
| 145 | shapecode_0_sides=32 |
| 146 | shapecode_0_additive=0 |
| 147 | shapecode_0_thickOutline=0 |
| 148 | shapecode_0_textured=0 |
| 149 | shapecode_0_num_inst=1 |
| 150 | shapecode_0_x=0.500 |
| 151 | shapecode_0_y=0.500 |
| 152 | shapecode_0_rad=0.20000 |
| 153 | shapecode_0_ang=0.00000 |
| 154 | shapecode_0_tex_ang=0.00000 |
| 155 | shapecode_0_tex_zoom=1.00000 |
| 156 | shapecode_0_r=1.000 |
| 157 | shapecode_0_g=0.000 |
| 158 | shapecode_0_b=0.400 |
| 159 | shapecode_0_a=0.500 |
| 160 | shapecode_0_r2=0.000 |
| 161 | shapecode_0_g2=1.000 |
| 162 | shapecode_0_b2=0.000 |
| 163 | shapecode_0_a2=0.200 |
| 164 | shapecode_0_border_r=1.000 |
| 165 | shapecode_0_border_g=1.000 |
| 166 | shapecode_0_border_b=1.000 |
| 167 | shapecode_0_border_a=0.000 |
| 168 | shape_0_per_frame1=ang = time*0.4;; |
| 169 | shape_0_per_frame2=x = 0.5 + 0.3*cos(time*1.23) + 0.03*cos(time*0.7); |
| 170 | shape_0_per_frame3=y = 0.5 + 0.3*sin(time*1.43) + 0.03*sin(time*0.7); |
| 171 | shape_0_per_frame4=r =0.5 + 0.5*sin(q8*0.613 + 1); |
| 172 | shape_0_per_frame5=g = 0.5 + 0.5*sin(q8*0.763 + 2); |
| 173 | shape_0_per_frame6=b = 0.5 + 0.5*sin(q8*0.771 + 5); |
| 174 | shape_0_per_frame7=r2 = 0.5 + 0.5*sin(q8*0.635 + 4); |
| 175 | shape_0_per_frame8=g2 = 0.5 + 0.5*sin(q8*0.616+ 1); |
| 176 | shape_0_per_frame9=b2 = 0.5 + 0.5*sin(q8*0.538 + 3); |
| 177 | shapecode_1_enabled=1 |
| 178 | shapecode_1_sides=32 |
| 179 | shapecode_1_additive=0 |
| 180 | shapecode_1_thickOutline=0 |
| 181 | shapecode_1_textured=0 |
| 182 | shapecode_1_num_inst=1 |
| 183 | shapecode_1_x=0.500 |
| 184 | shapecode_1_y=0.500 |
| 185 | shapecode_1_rad=0.20000 |
| 186 | shapecode_1_ang=0.00000 |
| 187 | shapecode_1_tex_ang=0.00000 |
| 188 | shapecode_1_tex_zoom=1.00000 |
| 189 | shapecode_1_r=1.000 |
| 190 | shapecode_1_g=0.000 |
| 191 | shapecode_1_b=0.000 |
| 192 | shapecode_1_a=0.500 |
| 193 | shapecode_1_r2=0.000 |
| 194 | shapecode_1_g2=1.000 |
| 195 | shapecode_1_b2=0.000 |
| 196 | shapecode_1_a2=0.200 |
| 197 | shapecode_1_border_r=1.000 |
| 198 | shapecode_1_border_g=1.000 |
| 199 | shapecode_1_border_b=1.000 |
| 200 | shapecode_1_border_a=0.100 |
| 201 | shape_1_per_frame1=ang = time*0.4;; |
| 202 | shape_1_per_frame2=x = 0.5 + 0.3*cos(time*1.104) + 0.03*cos(time*0.7); |
| 203 | shape_1_per_frame3=y = 0.5 + 0.3*sin(time*1.27) + 0.03*sin(time*0.7); |
| 204 | shape_1_per_frame4=r =0.5 + 0.5*sin(q8*0.613 + 1); |
| 205 | shape_1_per_frame5=g = 0.5 + 0.5*sin(q8*0.763 + 2); |
| 206 | shape_1_per_frame6=b = 0.5 + 0.5*sin(q8*0.771 + 5); |
| 207 | shape_1_per_frame7=r2 = 0.5 + 0.5*sin(q8*0.635 + 4); |
| 208 | shape_1_per_frame8=g2 = 0.5 + 0.5*sin(q8*0.616+ 1); |
| 209 | shape_1_per_frame9=b2 = 0.5 + 0.5*sin(q8*0.538 + 3); |
| 210 | shapecode_2_enabled=1 |
| 211 | shapecode_2_sides=4 |
| 212 | shapecode_2_additive=0 |
| 213 | shapecode_2_thickOutline=0 |
| 214 | shapecode_2_textured=0 |
| 215 | shapecode_2_num_inst=1 |
| 216 | shapecode_2_x=0.500 |
| 217 | shapecode_2_y=0.500 |
| 218 | shapecode_2_rad=0.20000 |
| 219 | shapecode_2_ang=0.00000 |
| 220 | shapecode_2_tex_ang=0.00000 |
| 221 | shapecode_2_tex_zoom=1.00000 |
| 222 | shapecode_2_r=1.000 |
| 223 | shapecode_2_g=0.000 |
| 224 | shapecode_2_b=0.000 |
| 225 | shapecode_2_a=0.500 |
| 226 | shapecode_2_r2=0.000 |
| 227 | shapecode_2_g2=1.000 |
| 228 | shapecode_2_b2=0.000 |
| 229 | shapecode_2_a2=0.200 |
| 230 | shapecode_2_border_r=1.000 |
| 231 | shapecode_2_border_g=1.000 |
| 232 | shapecode_2_border_b=1.000 |
| 233 | shapecode_2_border_a=0.100 |
| 234 | shape_2_per_frame1=ang = time*0.4;; |
| 235 | shape_2_per_frame2=x = 0.5 + 0.3*cos(time*1.23) + 0.03*cos(time*0.9); |
| 236 | shape_2_per_frame3=y = 0.5 + 0.3*sin(time*1.18) + 0.03*sin(time*0.9); |
| 237 | shape_2_per_frame4=r =0.5 + 0.5*sin(q8*0.413 + 1); |
| 238 | shape_2_per_frame5=g = 0.5 + 0.5*sin(q8*0.363 + 2); |
| 239 | shape_2_per_frame6=b = 0.5 + 0.5*sin(q8*0.871 + 5); |
| 240 | shape_2_per_frame7=r2 = 0.5 + 0.5*sin(q8*0.835 + 4); |
| 241 | shape_2_per_frame8=g2 = 0.5 + 0.5*sin(q8*0.686+ 1); |
| 242 | shape_2_per_frame9=b2 = 0.5 + 0.5*sin(q8*0.938 + 3); |
| 243 | shape_2_per_frame10=sides = 360; |
| 244 | shapecode_3_enabled=0 |
| 245 | shapecode_3_sides=4 |
| 246 | shapecode_3_additive=0 |
| 247 | shapecode_3_thickOutline=0 |
| 248 | shapecode_3_textured=0 |
| 249 | shapecode_3_num_inst=1 |
| 250 | shapecode_3_x=0.500 |
| 251 | shapecode_3_y=0.500 |
| 252 | shapecode_3_rad=0.10000 |
| 253 | shapecode_3_ang=0.00000 |
| 254 | shapecode_3_tex_ang=0.00000 |
| 255 | shapecode_3_tex_zoom=1.00000 |
| 256 | shapecode_3_r=1.000 |
| 257 | shapecode_3_g=0.000 |
| 258 | shapecode_3_b=0.000 |
| 259 | shapecode_3_a=1.000 |
| 260 | shapecode_3_r2=0.000 |
| 261 | shapecode_3_g2=1.000 |
| 262 | shapecode_3_b2=0.000 |
| 263 | shapecode_3_a2=0.000 |
| 264 | shapecode_3_border_r=1.000 |
| 265 | shapecode_3_border_g=1.000 |
| 266 | shapecode_3_border_b=1.000 |
| 267 | shapecode_3_border_a=0.100 |
| 268 | per_frame_init_1=x1 = 0.5; |
| 269 | per_frame_init_2=x2 = 0.500001; |
| 270 | per_frame_init_3= |
| 271 | per_frame_init_4=y2 = 0.9; |
| 272 | per_frame_init_5=y1 = 0.7; |
| 273 | per_frame_init_6= |
| 274 | per_frame_init_7=x3 = 0.8; |
| 275 | per_frame_init_8=y3 = 0.9; |
| 276 | per_frame_init_9= |
| 277 | per_frame_init_10=x4 = 0.2; |
| 278 | per_frame_init_11=y4 = 0.9; |
| 279 | per_frame_init_12= |
| 280 | per_frame_init_13= |
| 281 | per_frame_init_14=ax1 = 0; |
| 282 | per_frame_init_15=ay1 = 0; |
| 283 | per_frame_init_16=ax2 = 0; |
| 284 | per_frame_init_17=ay2 = 0; |
| 285 | per_frame_init_18=ax3 = 0; |
| 286 | per_frame_init_19=ay3 = 0; |
| 287 | per_frame_init_20= |
| 288 | per_frame_init_21=vx1 = 0.000; |
| 289 | per_frame_init_22=vx2 = 0.000; |
| 290 | per_frame_1=zoom = 1; |
| 291 | per_frame_2= |
| 292 | per_frame_3=//pogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogo |
| 293 | per_frame_4=r = 0.1+ max(bass_att,treb_att)*0.006; |
| 294 | per_frame_5=bounce = below(y1,r);y1 = y1+vy1;vy1 = if(bounce, abs(vy1)*0.94 + (r-y1)*0.1, vy1-0.0001*60/fps); |
| 295 | per_frame_6=bounce = below(x1,r);x1 = x1+vx1;vx1 = if(bounce, abs(vx1)*0.94 + (r-x1)*0.1, vx1); |
| 296 | per_frame_7=bounce = above(x1,1-r);vx1 = if(bounce, - abs(vx1)*0.94 + (1-r-x1)*0.04, vx1); |
| 297 | per_frame_8=bounce = below(y2,r);y2 = y2 + vy2;vy2 = if(bounce,abs(vy2)*0.94+(r-y2)*.1, vy2-0.0001*60/fps); |
| 298 | per_frame_9=bounce = below(x2,r);x2 = x2+ vx2;vx2 = if(bounce, abs(vx2)*0.94 + (r-x2)*0.1, vx2); |
| 299 | per_frame_10=bounce = above(x2,1-r);vx2 = if(bounce, - abs(vx2)*0.94 + (1-r-x2)*0.1, vx2); |
| 300 | per_frame_11=bounce = below(y3,r);y3 = y3 + vy3;vy3 = if(bounce,abs(vy3)*0.94+(r-y3)*.1, vy3-0.0001*60/fps); |
| 301 | per_frame_12=bounce = below(x3,r);x3 = x3+ vx3;vx3 = if(bounce, abs(vx3)*0.94 + (r-x3)*0.1, vx3); |
| 302 | per_frame_13=bounce = above(x3,1-r);vx3 = if(bounce, - abs(vx3)*0.94 + (1-r-x3)*0.1, vx3); |
| 303 | per_frame_14=bounce = below(y4,r);y4 = y4 + vy4;vy4 = if(bounce,abs(vy4)*0.94+(r-y4)*.1, vy4-0.0001*60/fps); |
| 304 | per_frame_15=bounce = below(x4,r);x4 = x4+ vx4;vx4 = if(bounce, abs(vx4)*0.94 + (r-x4)*0.1, vx4); |
| 305 | per_frame_16=bounce = above(x4,1-r);vx4 = if(bounce, - abs(vx4)*0.94 + (1-r-x4)*0.1, vx4); |
| 306 | per_frame_17=bounce = below( sqrt( sqr(x1+vx1-x2-vx2) + sqr(y1+vy1-y2-vy2)), 2*r); |
| 307 | per_frame_18=ref_ang = atan2(x2-x1,y2-y1)+asin(1); // common tangent |
| 308 | per_frame_19=v1 = sqrt(vx1*vx1+vy1*vy1);v2 = sqrt(vx2*vx2+vy2*vy2);w1 = atan2(vx1,vy1);w2 = atan2(vx2,vy2); |
| 309 | per_frame_20=vx1 = if(bounce,sin(ref_ang)*v1*cos(w1-ref_ang) + sin(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vx1); |
| 310 | per_frame_21=vy1 = if(bounce,cos(ref_ang)*v1*cos(w1-ref_ang) + cos(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vy1); |
| 311 | per_frame_22=vx2 = if(bounce,sin(ref_ang)*v2*cos(w2-ref_ang) + sin(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vx2); |
| 312 | per_frame_23=vy2 = if(bounce,cos(ref_ang)*v2*cos(w2-ref_ang) + cos(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vy2); |
| 313 | per_frame_24=bounce = below( sqrt( sqr(x1+vx1-x3-vx3) + sqr(y1+vy1-y3-vy3)), 2*r); |
| 314 | per_frame_25=ref_ang = atan2(x3-x1,y3-y1)+asin(1); // common tangent |
| 315 | per_frame_26=v1 = sqrt(vx1*vx1+vy1*vy1);v2 = sqrt(vx3*vx3+vy3*vy3);w1 = atan2(vx1,vy1);w2 = atan2(vx3,vy3); |
| 316 | per_frame_27=vx1 = if(bounce,sin(ref_ang)*v1*cos(w1-ref_ang) + sin(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vx1); |
| 317 | per_frame_28=vy1 = if(bounce,cos(ref_ang)*v1*cos(w1-ref_ang) + cos(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vy1); |
| 318 | per_frame_29=vx3 = if(bounce,sin(ref_ang)*v2*cos(w2-ref_ang) + sin(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vx3); |
| 319 | per_frame_30=vy3 = if(bounce,cos(ref_ang)*v2*cos(w2-ref_ang) + cos(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vy3); |
| 320 | per_frame_31=bounce = below( sqrt( sqr(x2+vx2-x3-vx3) + sqr(y2+vy2-y3-vy3)), 2*r); |
| 321 | per_frame_32=ref_ang = atan2(x3-x2,y3-y2)+asin(1); // common tangent |
| 322 | per_frame_33=v1 = sqrt(vx2*vx2+vy2*vy2);v2 = sqrt(vx3*vx3+vy3*vy3);w1 = atan2(vx2,vy2);w2 = atan2(vx3,vy3); |
| 323 | per_frame_34=vx2 = if(bounce,sin(ref_ang)*v1*cos(w1-ref_ang) + sin(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vx2); |
| 324 | per_frame_35=vy2 = if(bounce,cos(ref_ang)*v1*cos(w1-ref_ang) + cos(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vy2); |
| 325 | per_frame_36=vx3 = if(bounce,sin(ref_ang)*v2*cos(w2-ref_ang) + sin(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vx3); |
| 326 | per_frame_37=vy3 = if(bounce,cos(ref_ang)*v2*cos(w2-ref_ang) + cos(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vy3); |
| 327 | per_frame_38=bounce = below( sqrt( sqr(x1+vx1-x4-vx4) + sqr(y1+vy1-y4-vy4)), 2*r); |
| 328 | per_frame_39=ref_ang = atan2(x4-x1,y4-y1)+asin(1); // common tangent |
| 329 | per_frame_40=v1 = sqrt(vx1*vx1+vy1*vy1);v2 = sqrt(vx4*vx4+vy4*vy4);w1 = atan2(vx1,vy1);w2 = atan2(vx4,vy4); |
| 330 | per_frame_41=vx1 = if(bounce,sin(ref_ang)*v1*cos(w1-ref_ang) + sin(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vx1); |
| 331 | per_frame_42=vy1 = if(bounce,cos(ref_ang)*v1*cos(w1-ref_ang) + cos(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vy1); |
| 332 | per_frame_43=vx4 = if(bounce,sin(ref_ang)*v2*cos(w2-ref_ang) + sin(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vx4); |
| 333 | per_frame_44=vy4 = if(bounce,cos(ref_ang)*v2*cos(w2-ref_ang) + cos(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vy4); |
| 334 | per_frame_45=bounce = below( sqrt( sqr(x2+vx2-x4-vx4) + sqr(y2+vy2-y4-vy4)), 2*r); |
| 335 | per_frame_46=ref_ang = atan2(x4-x2,y4-y2)+asin(1); // common tangent |
| 336 | per_frame_47=v1 = sqrt(vx2*vx2+vy2*vy2);v2 = sqrt(vx4*vx4+vy4*vy4);w1 = atan2(vx2,vy2);w2 = atan2(vx4,vy4); |
| 337 | per_frame_48=vx2 = if(bounce,sin(ref_ang)*v1*cos(w1-ref_ang) + sin(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vx2); |
| 338 | per_frame_49=vy2 = if(bounce,cos(ref_ang)*v1*cos(w1-ref_ang) + cos(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vy2); |
| 339 | per_frame_50=vx4 = if(bounce,sin(ref_ang)*v2*cos(w2-ref_ang) + sin(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vx4); |
| 340 | per_frame_51=vy4 = if(bounce,cos(ref_ang)*v2*cos(w2-ref_ang) + cos(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vy4); |
| 341 | per_frame_52=bounce = below( sqrt( sqr(x3+vx3-x4-vx4) + sqr(y3+vy3-y4-vy4)), 2*r); |
| 342 | per_frame_53=ref_ang = atan2(x4-x3,y4-y3)+asin(1); // common tangent |
| 343 | per_frame_54=v1 = sqrt(vx3*vx3+vy3*vy3);v2 = sqrt(vx4*vx4+vy4*vy4);w1 = atan2(vx3,vy3);w2 = atan2(vx4,vy4); |
| 344 | per_frame_55=vx3 = if(bounce,sin(ref_ang)*v1*cos(w1-ref_ang) + sin(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vx3); |
| 345 | per_frame_56=vy3 = if(bounce,cos(ref_ang)*v1*cos(w1-ref_ang) + cos(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vy3); |
| 346 | per_frame_57=vx4 = if(bounce,sin(ref_ang)*v2*cos(w2-ref_ang) + sin(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vx4); |
| 347 | per_frame_58=vy4 = if(bounce,cos(ref_ang)*v2*cos(w2-ref_ang) + cos(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vy4); |
| 348 | per_frame_59=//pogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogo |
| 349 | per_frame_60=q1 = 0.5 - x1; |
| 350 | per_frame_61=q2 = -0.5 + y1; |
| 351 | per_frame_62=q3 = 0.5 - x2; |
| 352 | per_frame_63=q4 = -0.5 + y2; |
| 353 | per_frame_64=q5 = 0.5 - x3; |
| 354 | per_frame_65=q6 = -0.5 + y3; |
| 355 | per_frame_66=q7 = 0.5 - x4; |
| 356 | per_frame_67=q8 = -0.5 + y4; |
| 357 | warp_1=`shader_body { |
| 358 | warp_2=`float corr = texsize.xy*texsize_noise_lq.zw; |
| 359 | warp_3=`float2 uv1 = float2(uv.x-0.5,uv.y-0.5);//*aspect.xy; |
| 360 | warp_4=` |
| 361 | warp_5=`float3 noiseVal =.03*(tex2D(sampler_noise_lq, uv*.3+.01*rand_frame)); |
| 362 | warp_6=`noiseVal = .01; |
| 363 | warp_7=`float3 Feedback = GetBlur1(1-uv); |
| 364 | warp_8=` |
| 365 | warp_9=`float2 zz = uv1 *texsize.xy *.015; |
| 366 | warp_10=`//zz =mul(zz,float2x2(_qa)); |
| 367 | warp_11=`zz = zz.yx; |
| 368 | warp_12=`float2 h1 = clamp(tan(zz.yx),-12,12) * cos(4*(q2+1)*zz); |
| 369 | warp_13=` |
| 370 | warp_14=`uv.xy += h1*texsize.zw * 4*(2+q1); |
| 371 | warp_15=` |
| 372 | warp_16=` |
| 373 | warp_17=`float r = tex2D (sampler_noise_hq,uv/14).x*12; |
| 374 | warp_18=`float2 uv6 = uv1; |
| 375 | warp_19=`uv6 = mul(uv6, float2x2(cos(r),sin(r),-sin(r),cos(r))); |
| 376 | warp_20=`float3 mus = .1/(sqrt(uv6.y)); |
| 377 | warp_21=` |
| 378 | warp_22=`float3 crisp = tex2D(sampler_main,uv); |
| 379 | warp_23=`//crisp = lerp(crisp.bgr,crisp.rgb,2*crisp); |
| 380 | warp_24=`ret = .995*crisp+noiseVal-.02; |
| 381 | warp_25=`} |
| 382 | comp_1=`shader_body |
| 383 | comp_2=`{ |
| 384 | comp_3=`float2 uv1 = (uv-0.5)*aspect.xy; |
| 385 | comp_4=` |
| 386 | comp_5=`//float ang1 = atan2(uv1.y, uv1.x); |
| 387 | comp_6=`//float rad1 = log(length(uv1)-0.1); |
| 388 | comp_7=` |
| 389 | comp_8=`float rad2 = length(uv1) + .1; |
| 390 | comp_9=`float rad1 = .1/rad2 ; |
| 391 | comp_10=` |
| 392 | comp_11=`float2 uv2 = float2 (ang/3.14, rad1); |
| 393 | comp_12=`uv2.y = uv2.y +0.1*time; |
| 394 | comp_13=`uv2.x = uv2.x +.0*time; |
| 395 | comp_14=` |
| 396 | comp_15=`float2 uv3 = float2 (ang/3.14, rad1*1.5); |
| 397 | comp_16=`uv3.y = uv3.y +0.08*time ; |
| 398 | comp_17=`uv3.x = uv3.x + time/32; |
| 399 | comp_18=` |
| 400 | comp_19=`float3 crisp = 2*GetPixel(uv2) + GetPixel(uv3); |
| 401 | comp_20=`crisp += 2*GetBlur2(frac(uv2)) + 2*GetBlur2(frac(uv3)); |
| 402 | comp_21=` |
| 403 | comp_22=`float3 lay1 = float3 (0,0,1)*uv.y*pow(1-rad,8); |
| 404 | comp_23=` |
| 405 | comp_24=`crisp = 3*crisp * pow(rad,1); |
| 406 | comp_25=` |
| 407 | comp_26=`float mask = saturate(1-4*rad); |
| 408 | comp_27=` |
| 409 | comp_28=`ret = crisp + lay1*mask + mask * GetPixel(uv); |
| 410 | comp_29=` |
| 411 | comp_30=`} |